package net.huashitong.Project.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import net.huashitong.Project.dao.NodeNewFilterDao;
import net.huashitong.Project.entity.NodeFile;
import net.huashitong.Project.entity.NodeNewfile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hyp1202 on 2018/7/12.
 */
@Service
public class NodeNewFilterService extends StringPKService<NodeNewfile>{

    @Autowired
    private NodeNewFilterDao nodeNewFilterDao;
    @Override
    protected BaseDao<NodeNewfile, String> getDao() {
        return nodeNewFilterDao;
    }

    public List<NodeNewfile> queryNodeNewfile(NodeNewfile nodeNewfile){
        return nodeNewFilterDao.queryNodeNewfile(nodeNewfile);
    }

    public List<NodeNewfile> queryNodeName(){
        return nodeNewFilterDao.queryNodeName();
    }

    public List<NodeNewfile> getFilesByNodeId(String nodeId){
        return nodeNewFilterDao.getFilesByNodeId(nodeId);
    }
}
